package com.bdf.ipharma.dao;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

import com.bdf.ipharma.model.map.DispenserTipoMap;
import com.ibatis.sqlmap.client.SqlMapClient;

/**
 *
 * @author edw
 */
@Repository(value = "dispenserDao")
public class DispenserDAO extends SqlMapClientDaoSupport {

    // empty constructor
    public DispenserDAO() {
    }

    @Autowired
    public DispenserDAO(SqlMapClient sqlMapClient) {
        setSqlMapClient(sqlMapClient);
    }

    public DispenserTipoMap getDispenserParameters(String idDispenser){
    	logger.debug("begin getDispenserParameters at " + this.getClass().getName());
    	return (DispenserTipoMap)getSqlMapClientTemplate().queryForObject("dispenser.getDispenserParameters", idDispenser);    	
    }
    
}
